import axios from './axios'
import { cleanObj } from '@/assets/js/tool'

// 列表页
export function selectPage (data) {
  const param = {
    ...data
  }
  return axios.get('/api-taxi/dept/selectPage', { ...cleanObj(param) })
}

// 获取全部企业
export function selectAll (data) {
  return axios.get('/api-taxi/dept/selectAll', data)
}

// 详情
export function select (data) {
  return axios.get('/api-taxi/dept/select/' + data.id)
}

// 新增
export function insert (data) {
  return axios.post('/api-taxi/dept/insert', { ...cleanObj(data) })
}

export function update (data) {
  return axios.post('/api-taxi/dept/update', { ...cleanObj(data) })
}

// 企业批量导入
export function batchImport(data) {
  return axios.post('/api-taxi/dept/deptbatchImport', data)
}

// 删除
export function del (data) {
  return axios.delete('/api-taxi/dept/delete/' + data.id)
}

// 出租车企业批量导入
export function taxiBatchImport(data) {
  return axios.post('/api-taxi/dept/batchImport/taxi', data)
}
// 驾驶员批量导入
export function driverBatchImport(data) {
  return axios.post('/api-taxi/driver/batchImport', data)
}

export function qrcodeExport(data) {
  return axios.post('/api-taxi/dept/batchQrExport', data)
}

export function personInfoImport(data) {
  return axios.post('/api-taxi/industryperson/batchImport', data)
}

